package next.CommonProfile;

//import shells.DataUser;
import next.CustomLayout.TitleBar;
import next.CustomLayout.TitleWidget;
import next.Functionality.S_3R4_Activity;
import next.TemplateActivity.R;
import next.control.ApplicationController;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.google.android.maps.GeoPoint;

public class Dashboard_SI extends S_3R4_Activity {

	//--Attributes--
	private TextView user, pass;
	private Button okSI;
	private ImageView TypeUser;
	private Bundle b;
	private int valueTypeUser=0;
	private LocationManager locationManager;
	private LocationProvider locationProvider;
	
	/** Called when the activity is first created. */
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.app_dashboard_sign_in_layout);

	        // Initialize title Widget
	        TitleWidget titleWidget = (TitleWidget)findViewById(R.id.normal_activity_CV_TWI1);
	        // Call the methods to change the underlying widgets
	        titleWidget.setTitle("SIGN IN");
	        titleWidget.setIcon(R.drawable.icon);
	        titleWidget.showProgressBar();
	        titleWidget.hideProgressBar();
	        
	        //--Assembling XML widgets--
	        user = (TextView) findViewById(R.id.dashboard_sign_inET1);
	        pass = (TextView) findViewById(R.id.dashboard_sign_inET2);
	        okSI = (Button) findViewById(R.id.dashboard_sign_inBN01);
	        TypeUser=(ImageView) findViewById(R.id.dashboard_sign_inIV01);
	        TypeUser.setImageResource(R.drawable.ic_launcher_member_si);
	        EditText ete=(EditText) findViewById(R.id.dashboard_sign_inET1);
	         ete.setOnTouchListener(VoiceListener);
	        EditText ete2=(EditText) findViewById(R.id.dashboard_sign_inET2);
	         ete2.setOnTouchListener(VoiceListener);
	        
	        /*if ( ApplicationController.TypeUser.ADMIN== AppController.getCurrentUser())
	        	TypeUser.setImageResource(R.drawable.ic_launcher_admin_su);
	        else if ( ApplicationController.TypeUser.CLIENT== AppController.getCurrentUser())
	        	TypeUser.setImageResource(R.drawable.ic_launcher_client_su);
	        else
	        	TypeUser.setImageResource(R.drawable.ic_launcher_member_si);*/
	        
            //--Adding action to widgets--
	        okSI.setOnClickListener(ApplicationController.getInstance());
	        
	        
	 }

}
